check color before generating moves.