Detection of green cube almost working