Simplify Avatar::setState() method
Rename references in code of „player“ to „avatar“