game.js intersection check bug fix