cleaning up the code

meanwhile i work on making the code smaller and better to use for me.
next sep will be an controlable player and cube colission detection.
or more copying stuff.