includes funtionality to add earned leaves upto -1 leaves

Rebased