Issue 4: fold if statements

* Fold if statements in OnGameFrame.

TODO: Run SM profiler to identify plugin performance problems.