restructured some code, and began implementation work for the continue game functionality

Signed-off-by: Alexander Skjolden <alex@plastboks.net>