More bug fixes, finally found out how to do the en

ergy system properly. Lots of texturing as well.