Added end turn function for networking