Branched code tries to use player class in the actual game code; not working though.