Added Exceptionhandling in case invalid positions get passed