ok, it wasn't enough to movedthe implementation of getAvailableDeckOrderings to the cpp, I also had to declare it outside of the function.