CP Availability

Added checks to the Available Squares method in the algorithm module and
the Action Available methods.