Fix #11: refactoring GameWindow.