Level editor

tested, fixed checkstyle and fixed several bugs