Added additional checks to the Rect class's collision detetction,
however it turned out to be redundant checks and therefore was removed.