Collision Detection

I need some help with collision detection. I have a ship the moves from left to right and back when you touch it. The ship has a collide attribute to bounce against the wall. The wall has the same attribute except its against the ship. When I run it, the ship doesn't collide, it just goes through the sides. Anyone got an idea how to fix it?
Comments
Also check the restitution settings in the ship and make sure it's set to something greater than 0.
-drahc
@AppsRack you move the ship by touching on it. I constrained the position on the Y by 75 and I constrained it on the X with a custom attribute