On line 101 you have an excessive closing brace ( } )
On line 222, you a random undeclared identifier "north" do nothing
On line 226, you have another excessive closing brace
On lines 80 and 103 you are mixing different kinds of enumerated types within a switch control structure.
Another excessive closing brace at line 142.
As well as some other things.
Are you sure this is the actual code?