Using player resource
Implement tests and fix linting