Some fix in Main.java
Abstract class for input tables
Classes for mines and factories input tables