refactored code

player class, new heuristic, streamlined input