Included some more commit functions and created the class Tuple, so we
can use tuples (which are used to represent the positions on the map).