Creates functions, creates main stage

I made the stage area separate from the player info.
I also consolidated a bunch of the JS into functions so we can call them from multiple locations.