Changed all grid coordinates to double to work with Point objects on the client