moved task related functions from Level.hs to Level/Task.hs