Raycast method a bit refactored, it's now possible to add and remove cubes.