Your black cube is a "car" and the objective is to stay on the "road". To do so you must not drive off the road/gray and touch the red.
Updates: v.0.3 - Game was just made with 3 levels and not a very hard game, yet. v.1.4 - Bug fixes and added one level!