Code for a game I was writing for year end project but never finished.