Improved algorithm, also added a message that displays the end game status, either a draw message or who won.