Fixed the bug when cubes were going through each other. Added comments.