can_reach code to check piece moves