removed temporary variable
pass in the player object rather than 1-element variable
take any player - does not have to be player 1