I added the ghost names as constants of their integer index from the ghosts[] array.

This way you can replace the index with their name or number interchangeably.