PetBot - client side code