more basic stuff
-fps boost by only rendering visible things :D
-added basic unit functions
-fixed a few bugs