added obstacles

added an obstacle script in dot manager and to the game