added wrapping around for ship rendering