fixed knight logic