basic game in crafty.js