Implemented a button list.

The animation of the player is now supposed to iterate through the
buttons in the proper order, but there's some flaws in the logic.