Detect pits and spikes in room.cpp