A prolog implementation of tic-tac-toe for comp360-fall2014