for the controls I used a little delay, mabye it's too much. I used for thaat game processing.js. I is Processing-languag, which is hybrid to javascript