added player class, and test code in engine.py