I changed almost all variables from a dynamic programming style to a static one.
This should lead to a bit of an improved performance.
I also changed the full screen toggle to two different buttons for full screen or windowed.
The game remembers the setting and automatically applies a full screen or windowed window size on start.