added ENDTURN support to the server