implemented max (x,y) position for game objects.