Add comments and rearrange the variables into units
Rearrange the code
Simplify the layout of CreateNewDeckPanel
Change arbitrary numbers to constant variables
Refactor the code by spliting the code into smaller methods
Fix the null pointer error by removing the passing argument