made the logic class for portal movement
adding my work on the portal movement logic