Fix returning player index.
Reformat.
Add non-owning getters.