factored out removeObstacle() function
need to fix collision detection