Added action GUI
Fixed outofboundsexception