refactoring player and vector to specific classes