private ArrayList<Integer> primes(int pos){
    if(pos>31) throw new RuntimeException("primes not defined to go that large\nset to less than 32");
    if(pos<1) throw new RuntimeException("No valid moves specified in primes\nset to more than 0");
    ArrayList<Integer> out = new ArrayList<Integer>();
    if(bitTest(pos,1)) out.add(2);
    if(bitTest(pos,2)) out.add(3);
    if(bitTest(pos,3)) out.add(5);
    if(bitTest(pos,4)) out.add(7);
    if(bitTest(pos,5)) out.add(11); 
    
    return out;
  }