Uploaded Main.java (Q-Learning)