add cube velocity and mouse release functionality