Updated Project #6, added the (malfunctioning) game logic