Added a function to draw cube although it's quite buggy.