Adding functionality to game buttons