took some errors out and added hit wall event