Code reformated. Include added to knight_class.php