Java says the variable may not have been initialized if you leave this as String nextTurn; but it is misleading to have it start off set as String nextTurn = "Black"; Just have it set as String nextTurn = null;