added an inventory class, implemented one way of swapping gems in a straight line