Added getNextPosition

Added private method getNextPosition
Changed class Main

Changed demonstrational options in the Main class