Reinforcement Learning implemented to teach an agent to play tic-tac-toe