refactored ghostMode to isGhostPlayer