A burglar broke into a house, but the owner played a clever game