Added CUDA kernel

Moved state class to state.h and state.cpp files, added CUDA calculate
function for calculating shortest paths withing one move