added errorcodes and constructor to land.java