Work on better getTile method and isValid method