removing dead code.

when this code was run, exceptions were thrown.
renaming more vars

made scene static so it can be used app wide
beginning to use global scene max size