code snippets for our game. This is not going to be kept very up to date