How to Code a Game: A Beginner's Guide