Tic-Tac-Toe with match history

This is my version of Tic-Tac-Toe. The core game is pretty much the same, I check every single user input so only valid inputs are allowed. It has a match history which shows the outcome of the last 5 games + final board arrangement.
TODO: Simple AI to play vs. Computer.