Added @position Hash to store current position

Added test for 'out of range' exception