Code for game for Senior Project