Code from my 1gam january game.