bounds checking to stop off-screen tiles loading