Fixed an issue with MoveStaff function

It will now properly move the staff from the cube ONLY if it is in the cube