changed rect arguments of player to 3