Added out of screen Detection

In drawProjectedBlock()