A PHP challenge involving hallways and creatures