I like open-source, so here is the code for my first game :)