refactor player entity setup into seperate file