implemented wait for enough players