Fixed a random states test bug due to out of bounds access.
Merge branch 'feature-maingameloop' of https://github.com/JodiTheTigger/game-in-a-box into feature-packet-state-machine-helpers