Moved code to use rect#intersects