restructered the program and replaced the checkWin method with a more concise version located in Player2.java