A single pile nim game made with Java using Swing