In setButtonColor you passed in an integer named "buttonColor" but don't use it. buttonColor is not the same as buttonCOLOR, but this does seem to be the problem.