Refactored code, fixed bug in knight movement