added Hammer.js for touch functionality, fixed a bug in GameState