Fixed memory leak bug when generating obstacles. Can now generate
obstacles of any size