added window opening functions and a lot of stuff to the sprite class. commiting for safetey