made the end positions in a naive way random for the moment