Cleaned player handler.

- Less casting all over the place.
- Tidied some scoping and white-space.
- Removed unused imports.
- No need to store player objects indexed by their name.
- Use helpful variable names rather than "k".