preparing code for saving/loading games