title: Tic Tac Toe program using 1 dimensional array issue
body: <p>Hi I created a program that has one dimensional array that can hold 9 elements and enum mark(O,X). this encoding scheme sets the first move to x and then o in the array etc...
  My problem is I want to make my getWinner() method that calculates the winner more efficient. currently I just have a bunch of if else statements, how can I reduce the lines of code and make it in a more "smarter way". </p>