Added wells, labels and completed the basic logic