Added cursor moving code

Added some to code to move the cursor position, not quite there yet!