Adds function to get correct coordinate for a piece in a puzzle