updateTarget (from the Player class) now takes the target as a parameter instead of the whole player map