Code for a game I am working on