Add getPlayerPtr() utility method. Reduces dependencies a lot.