tutorial for crafty found at http://buildnewgames.com/introduction-to-crafty/