updated game.js

fixed collision with monsters, added collision with player, added
end-game conditions, etc.