added methods for checking for a piece in a direction
optimized conversion between Position object and String object
forgot to remove the comment
updated result codes