Added the invalid move part if the piece tries to move on rock.