Removed syntactical errors. Still need to check if the node is a solution.