fixed infinite loop in user input (see PITFALLS)
-Wall, lint and added initial map gen