Started moving the frame code into a custom class so that it would be
easier to create each screen/state