So my program is a chess AI. It works by making a tree for all the possible moves.
The problem is that after a depth of 4, this tree becomes really big. At the starting p