Fixed some bugs in game logic regarding figure overlap.
Added handler for end game conditions.
Moved king shape symbol below the figure to fix a display bug.