Modified run() method in Game.java for improved performance and functionality.