Numerical simulation of ice floes in waves