player moved from object literal to new class