Added gravity.py

Gravity can be initialized by pressing g.