created position, grid classes and  the corresponding test files and use subject to refactor test cases