Handle ball and obstacles logic. Fix #2 Fix #3