added cellsize to settings
implemented proper cell selection
adjusted editing fog
added checking for bounds on mouse events