Modified server input method to suit game, added import ArrayList