renamed gamestate to basestate to make it less confusing

also updated the code to reflect this