somewhat working gameflow.