refactored high-level class
made Player class, refactored