flatland minus graphics complete, optimization of params todo