Added helper fuctions addObstacle & addEnemy