moved the method Determine new position to Parser andmade Parser static class