Java swing project - A simple battles game