good game!
but here some small tips for the next time you do something like this you can use the distance x of the portal to the mouse to check when is far or near and stop the portal from moving when is near doing this you will prevent the portal from flipping fast here I leave an example