Added isSuicidal()

Provides a way to avoid hitting walls.