added main to HayStack.java

moved main from MainScreen.java to HayStack.java