make number buttons usable

using for loop was not working