Added more game logic. Added proper rendering.