Remove the condition currentPlayer =0