formatting on Controls.as; fixed unnecessary duplicate checkEdge call