Creating Nim.java