score counter function added using off left and off right methods