defined main.state and added bird + grav