Implemented TextUI allowing player to play against AI.