Fixed king upgrade bugs, added win condition, finished