Added update function for all game objects, cleaned up code and added QLearning class from tutorial