Removed extra y row & centralized number of y lines in controller