Moved the FPS-drawing code to main.lua

Addresses Issue #1271
By moving the code to main.lua, all of the game windows will have the
FPS drawn on them if the option is enabled, without having to add the
code to each individual window.