Added Victory condition, Undo/Redo

- Added Undo command checking.
- Added basic victory condition checking. Once the next player cannot
play, a winner is decided upon.