cleaned up some code and moved background stuff to own layer (not environment)