Epsilon-Greedy algorithm in Java