Minor Update 2014/6/5

Fixed some stupid bugs at the end of the game.
Updated the AI.