Crafty tutorial from http://buildnewgames.com/introduction-to-crafty/