Added triangle checking function

Doing this now cause I'm changing level parser.