adding a method for getting the cell of a position as an integer