Fixed bugs

Fixed return error in doesExistWithinBoard