How do I make my object move left after it collides with another object?

using UnityEngine;
using System.Collections;

public class MoveScript : MonoBehaviour 
{
	public float moveSpeed;

	// Use this for initialization
	void Start () 
	{
	
	}
	
	// Update is called once per frame
	void Update () 
	{
		//float h = Input.GetAxis ("Horizontal") * moveSpeed;

		transform.Translate (Vector2.right * moveSpeed * Time.deltaTime);
	
	}

	void OnCollisionEnter2D(Collision2D coll)
	{
		if (coll.gameObject.tag == "A")
		{
			transform.Translate (-Vector2.right * moveSpeed * Time.deltaTime);
		}
	}
}

public class MoveScript : MonoBehaviour
{
public float moveSpeed;
bool move;
// Use this for initialization
void Start ()
{
move = true;
}

    // Update is called once per frame
    void Update () 
    {
        //float h = Input.GetAxis ("Horizontal") * moveSpeed;
       if(move)
        transform.Translate (Vector2.right * moveSpeed * Time.deltaTime);
       else
           transform.Translate (-Vector2.right * moveSpeed * Time.deltaTime);
    }
 
    void OnCollisionEnter2D(Collision2D coll)
    {
        if (coll.gameObject.tag == "A")
        {
           move = false;
        }
    }
}