added function to not decrement score below zero