Added functionality to the GameWindow.java class.