Moved collision logic outside quad tree