I have a square frame in which the user is allowed to move a block in but not touch the frame. If the user touches the square frame the game ends. Currently I have a problem where if the user swipes the block quickly, it passes through the frame without any collision/contact detections. If the player moves the block slowly and touches the frame then it detects a collision. My code is as follows and I cant get it to stop passing through the frame. I have a square frame in which the user is allo