Link every pair of like-colored markers to complete a cube. You cannot link cells diagonally. If you break an existing link reselect the broken link color by clicking on one of the two markers, then plug the gaps. Black cells are blocked.
Left click for single square select. Left click and hold to select more than one square. Move mouse around cube to rotate it.