implemented dino logic