more bug fixes, added undo option to game.js