Implement linear equation solver and add canIntercept() method to block piece checking king