Press the flag to randomly generate a cube. In this project the pen draws one 60 pixel line then two random points on opposite sides of the grid are selected. From the middle line the pen draws two more 60 pixel lines between the middle line and the dot. It then draws lines parallel to the middle line and two more parallel to the other lines. The code then calculates whether the top face or the bottom face should be showing based off of the two other faces of the cube. Based off of the result of the two faces it will then draw two lines on either the top or the bottom.