updated min and max x and y for player to keep on screen