used with and height in GamePanel