created player and state classes