working on the cubeInteraction file