I know there is someting wrong with my boolean type, and I am not sure how to fix it, please help me.
First bool land(int location);
, this one is a prototype that you use as a function later at line 75.
You're using this prototype as a normal variable at line 53, 56 and 61.