Added socket emit "doAction" when endTurn is called