prevent double click when it is computer turn