Calculation of rotational states of methane molecules in a square lattice