Added barrier, and gravity

Exactly what it says