Code for the 3rd game project