if (north) {
} else if (south) {
} else if (west) {
} else if (east) {
}
potential missing else-clause for wrong direction.
Funny placement of {} because they add them, misplace them and then delete the wrong ones.
if (a) {
}
if (b) {
}
if (c) {
}
missing else as only one of them should be done even if more is true.