Implemented  top and bottom collision border