replaced long code with array to make code short
edited and deleted some comments
initial commit for ButtonListener, but not decided whether to use or not