Don't instantiate off-screen tiles

Also some matlab math testing stuff