Exit condition added game completely working. Now need to count moves and timer. (maybe fix mapsave/build glitchy)