function counting coffees works properly :) few little bugs fixed