def get_enemy(player):
    """Returns the enemy player. The player to move next.

    :param player: current player
    """
    if type(player) == int:
        return -player
    if player == 'X':
        return 'O'
    return 'X'
