Simplified code

Replaced Display.getWidth() & Display.getHeight() with width and height