Changed project language level to Java 8.
Renamed CardTrick.java to TrickWindow.java and extracted the main method from it.
Kept the main method in the CardTrick class and moved the rest of the model code to a new class, TrickModel.