Java Problem-solving With Games