Pivoting worked, then I broke everything, but it was on purpose, so its ok. Trying to split off cubes code into a seperate module. Havent decided were drawing goes yet.
Best working state before spliting off parts to seperate module.