Game loop is now working and user input handled.