fixed up the getNum from child to parent..

Simple TO-DOs: Fix horizontal check, fix vertical check.