fixed glitchy windows, separated render from input, cleaned up code, time for TF2