Update infinitPoint.java

Added the needed functionality to the infinit point